package org.uni_hi.muus.server.util;


public class ConfigRecordStore extends AbstractRecordStore{

	private static int ROOT_RS_POS=1;
	
	private static ConfigRecordStore _crs=null;
	
	private ConfigRecordStore(){
		super("config");
	}
	
	private static ConfigRecordStore getConfigRecordStore(){
		if(_crs==null){
			_crs=new ConfigRecordStore();
		}
		return _crs;
	}
	
	public static String getRootDirectory(){
		return getConfigRecordStore().getData(ROOT_RS_POS);
	}

	public static void setRootDirectory(String rd){
		ROOT_RS_POS=getConfigRecordStore().setData(ROOT_RS_POS, rd);
	}
}
